package com.supermap.application.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @ClassName TIndexSys 指标体系类
 * @Author HEKE
 * @Date 2019/2/21 16:24
 */

@Entity
@Table(name = "T_INDEX_SYS")
public class TIndexSys {

    //ID
    private String id;
    //指标体系码
    private String code;
    //指标体系名称
    private String name;
    //体系描述
    private String des;
    //年份
    private String year;
    //创建人
    private String create_user;
    //创建时间
    private String create_time;
    //屏蔽标识符
    private String pbflag;
    //指标体系页面排序
    private int show_index;

    public TIndexSys() {
    }

    public TIndexSys(String id, String code, String name, String des, String year, String create_user, String create_time, String pbflag, int show_index) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.des = des;
        this.year = year;
        this.create_user = create_user;
        this.create_time = create_time;
        this.pbflag = pbflag;
        this.show_index = show_index;
    }

    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "ID_", unique = true, nullable = false, precision = 10, scale = 0)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "CODE_", length = 50)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "NAME_", length = 254)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "DES_", length = 500)
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Column(name = "YEAR_", length = 5)
    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    @Column(name = "CREATE_USER_", length = 55)
    public String getCreate_user() {
        return create_user;
    }

    public void setCreate_user(String create_user) {
        this.create_user = create_user;
    }

    @Column(name = "CREATE_TIME_", length = 25)
    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    @Column(name = "PBFLAG", length = 5)
    public String getPbflag() {
        return pbflag;
    }

    public void setPbflag(String pbflag) {
        this.pbflag = pbflag;
    }

    @Column(name = "SHOW_INDEX_")
    public int getShow_index() {
        return show_index;
    }

    public void setShow_index(int show_index) {
        this.show_index = show_index;
    }
}
